package com.ruoyi.back.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 行业资讯对象 industry_consulting
 * 
 * @author luguanqing
 * @date 2021-04-06
 */
@ApiModel("行业咨询实体")
public class IndustryConsulting extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty(value = "主键id")
    private String id;

    /** 资讯标题 */
    @ApiModelProperty(value = "资讯标题")
    @Excel(name = "资讯标题")
    private String title;

    /** 资讯内容 */
    @ApiModelProperty(value = "资讯内容")
    @Excel(name = "资讯内容")
    private String content;

    /** 上传日期 */
    @ApiModelProperty(value = "上传日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uptime;

    /** 上传图片 */
    @ApiModelProperty(value = "上传图片")
    @Excel(name = "上传图片")
    private String img;

    /** 浏览次数 */
    @ApiModelProperty(value = "浏览次数")
    @Excel(name = "浏览次数")
    private String visit;

    /** 状态 */
    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String state;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setUptime(Date uptime) 
    {
        this.uptime = uptime;
    }

    public Date getUptime() 
    {
        return uptime;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setVisit(String visit) 
    {
        this.visit = visit;
    }

    public String getVisit() 
    {
        return visit;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("uptime", getUptime())
            .append("img", getImg())
            .append("visit", getVisit())
            .append("state", getState())
            .toString();
    }
}
